package com.zyf.chapter02.behavior.state.mario.refactor.v2;

import com.zyf.chapter02.behavior.state.mario.State;

/**
 * 所有状态类的接口
 * @author yifeng
 */
public interface IMario {
    State getName();
    // 以下为定义事件
    void obtainMushRoom(MarioStateMachine marioStateMachine);
    void obtainCape(MarioStateMachine marioStateMachine);
    void obtainFireFlower(MarioStateMachine marioStateMachine);
    void meetMoster(MarioStateMachine marioStateMachine);
}
